Frame

data class Frame(id: FrameId, parentId: String?, loaderId: LoaderId, name: String?, url: String, urlFragment: String?, domainAndRegistry: String, securityOrigin: String, mimeType: String, unreachableUrl: String?, adFrameType: AdFrameType?, secureContextType: SecureContextType, crossOriginIsolatedContextType: CrossOriginIsolatedContextType, gatedAPIFeatures: List<GatedAPIFeatures>)

Information about the Frame on the page.

Constructors

Frame
Link copied to clipboard
fun Frame(id: FrameId, parentId: String? = null, loaderId: LoaderId, name: String? = null, url: String, urlFragment: String? = null, domainAndRegistry: String, securityOrigin: String, mimeType: String, unreachableUrl: String? = null, adFrameType: AdFrameType? = null, secureContextType: SecureContextType, crossOriginIsolatedContextType: CrossOriginIsolatedContextType, gatedAPIFeatures: List<GatedAPIFeatures>)

Properties

adFrameType
Link copied to clipboard
val adFrameType: AdFrameType? = null
Indicates whether this frame was tagged as an ad.
crossOriginIsolatedContextType
Link copied to clipboard
Indicates whether this is a cross origin isolated context.
domainAndRegistry
Link copied to clipboard
val domainAndRegistry: String
Frame document's registered domain, taking the public suffixes list into account.
gatedAPIFeatures
Link copied to clipboard
val gatedAPIFeatures: List<GatedAPIFeatures>
Indicated which gated APIs / features are available.
id
Link copied to clipboard
val id: FrameId
Frame unique identifier.
loaderId
Link copied to clipboard
val loaderId: LoaderId
Identifier of the loader associated with this frame.
mimeType
Link copied to clipboard
val mimeType: String
Frame document's mimeType as determined by the browser.
name
Link copied to clipboard
val name: String? = null
Frame's name as specified in the tag.
parentId
Link copied to clipboard
val parentId: String? = null
Parent frame identifier.
secureContextType
Link copied to clipboard
val secureContextType: SecureContextType
Indicates whether the main document is a secure context and explains why that is the case.
securityOrigin
Link copied to clipboard
val securityOrigin: String
Frame document's security origin.
unreachableUrl
Link copied to clipboard
val unreachableUrl: String? = null
If the frame failed to load, this contains the URL that could not be loaded.
url
Link copied to clipboard
val url: String
Frame document's URL without fragment.
urlFragment
Link copied to clipboard
val urlFragment: String? = null
Frame document's URL fragment including the '#'.

Sources

jvm source
Link copied to clipboard